local Stype = require("Stype")

local remote_servers = {}

-- 注册我们的服务所部署的IP地址和端口
remote_servers[Stype.Auth] = {
	stype = Stype.Auth,
	ip = "127.0.0.1",
	port = 8000,
	desic = "Auth server",
}

remote_servers[Stype.System] = {
	stype = Stype.System,
	ip = "127.0.0.1",
	port = 8001,
	desic = "System server",
}

remote_servers[Stype.Logic] = {
	stype = Stype.Logic,
	ip = "127.0.0.1",
	port = 8002, 
	desic = "Logic Server"
}


local game_config = {
	gateway_tcp_ip = "127.0.0.1",
	gateway_tcp_port = 6080,

	gateway_ws_ip = "127.0.0.1",
	gateway_ws_port = 6081,

	servers = remote_servers,

	auth_mysql = {
		host = "127.0.0.1", -- 数据库所在的host
		port = 3306,        -- 数据库所在的端口
		db_name = "auth_center",  -- 数据库的名字
		uname = "root",      -- 登陆数据库的账号
		upwd = "qwert123",     -- 登陆数据库的密码
	},

	center_redis = {
		host = "127.0.0.1", -- redis所在的host
		port = 6379, -- reidis 端口
		db_index = 1, -- 数据1
	}, 

	game_mysql = {
		host = "127.0.0.1", -- 数据库所在的host
		port = 3306,        -- 数据库所在的端口
		db_name = "bycw_game",  -- 数据库的名字
		uname = "root",      -- 登陆数据库的账号
		upwd = "qwert123",     -- 登陆数据库的密码
	},

	game_redis = {
		host = "127.0.0.1", -- redis所在的host
		port = 6379, -- reidis 端口
		db_index = 2, -- 数据库2
	},

	-- 做排行榜的redis服务器
	rank_redis = {
		host = "127.0.0.1", -- redis所在的host
		port = 6379, -- reidis 端口
		db_index = 3, -- 数据库3
	},

	-- logic server udp
	logic_udp = {
		host = "127.0.0.1",
		port = 8800,
	},
}

return game_config
